<table width="100%">
<caption><h1>Product View</h1><span><?=html::anchor('product/edit/'.$product->id, 'Edit')?></span></caption>
<thead><tr>
	<th width="20%">属性</th>
	<th width="80%">内容</th>
</tr></thead>
<tbody id="myTable"><tr>
	<td>ID</td>
	<td><?=$product->id?></td>
</tr><tr>
	<td>Name</td>
	<td><?=$product->name?></td>
</tr><tr>
	<td>系列</td>
	<td><?=$product->series?></td>
</tr><tr>
	<td>中文标题</td>
	<td><?=$product->title_cn?></td>
</tr><tr>
	<td>英文标题</td>
	<td><?=$product->title_cn?></td>
</tr><tr>
	<td>中文描述</td>
	<td><?=nl2br($product->description_cn)?></td>
</tr><tr>
	<td>英文描述</td>
	<td><?=nl2br($product->description_en)?></td>
</tr><tr>
	<td>关键词</td>
	<td><?=$product->keywords?></td>
</tr><tr>
	<td>数量</td>
	<td><?=$product->quantity?></td>
</tr><tr>
	<td>重量</td>
	<td><?=$product->weight?></td>
</tr><tr>
	<td>市场价格</td>
	<td><?=$product->market_price?></td>
</tr><tr>
	<td>价格</td>
	<td><?=$product->price?></td>
</tr>
<?php if($product->details_cn) { ?>
<?php foreach(unserialize($product->details_cn) as $key=>$value) { ?>
<tr>
	<td><?=$key?></td>
	<td><?=$value?></td>
</tr>
<?php } } ?>
<?php if($product->details_cn) { ?>
<?php foreach(unserialize($product->details_en) as $key=>$value) { ?>
<tr>
	<td><?=$key?></td>
	<td><?=$value?></td>
</tr>
<?php } } ?>
<tr>
	<td>创建时间</td>
	<td><?=$product->created_at?></td>
</tr><tr>
	<td>更新时间</td>
	<td><?=$product->updated_at?></td>
</tr><tr>
	<td>图片</td>
	<td><?php if(file_exists(DOCROOT.'../resource/product/'.$product->id.'.'.$product->photo_ext)) { ?><img src="<?=Config::item('config.website').'resource/product/'.$product->id.'.'.$product->photo_ext?>"/><?php } ?></td>
</tr></tbody></table>
<?=html::script('js/table.js')?>
